#include <Arduino.h>
#include "WatchDog.h"
#include "Ze08Ch2o.h"



void setup()
{
  //put your setup code here, to run once:
  Serial.begin(115200);
  delay(10);

  Serial.printf("ESP32 HEAP %d\r\n",esp_get_free_heap_size());

  Ze08_Ch2o_Init();

  Serial.printf("ESP32 HEAP %d\r\n",esp_get_free_heap_size());

  delay(1000);

  WatchDog_Init();

  Serial.println("loop start");
}

void loop() 
{
  //put your main code here, to run repeatedly:
  Feed_Dog();

  Read_Ze08_Ch2o_Data();
  
  Feed_Dog();
}